package com.itwill.ecom.cart;

import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonRootName;


@JsonRootName("CartBeans")
public class CartBeans {
	
/*	
	CREATE TABLE CART
	(
	    CART_NO NUMBER(10) NOT NULL PRIMARY KEY,
	    CART_MEMBER NUMBER(10) NOT NULL,
	    CART_PRODUCT NUMBER(10) NOT NULL,
	    CART_COUNT NUMBER(10) NOT NULL,
	    CONSTRAINT CART_FK_MEMBER FOREIGN KEY (CART_MEMBER)
	                    REFERENCES MEMBER(MEMBER_NO) ON DELETE SET NULL,
	    CONSTRAINT CART_FK_PRODUCT FOREIGN KEY (CART_PRODUCT)
	                    REFERENCES PRODUCT(PRODUCT_NO) ON DELETE SET NULL
	);
*/
	
	/*************cart 부분**************/
	@JsonProperty("cart_no")
	int cart_no;
	@JsonProperty("cart_member")
	int cart_member;
	@JsonProperty("cart_product")
	int cart_product;
	@JsonProperty("cart_count")
	int cart_count;
	/************product 부분**************/
	@JsonProperty("product_name")
	String product_name;
	@JsonProperty("product_price")
	int product_price;
	@JsonProperty("product_image0")
	String product_image0;
	
	

	
	public String getProduct_name() {
		return product_name;
	}


	public void setProduct_name(String product_name) {
		this.product_name = product_name;
	}


	public int getProduct_price() {
		return product_price;
	}


	public void setProduct_price(int product_price) {
		this.product_price = product_price;
	}


	public String getProduct_image0() {
		return product_image0;
	}


	public void setProduct_image0(String product_image0) {
		this.product_image0 = product_image0;
	}


	public CartBeans() {
	}
	
	
	public CartBeans(int cart_no, int cart_member, int cart_product,
			int cart_count, String product_name, int product_price,
			String product_image0) {
		
		this.cart_no = cart_no;
		this.cart_member = cart_member;
		this.cart_product = cart_product;
		this.cart_count = cart_count;
		this.product_name = product_name;
		this.product_price = product_price;
		this.product_image0 = product_image0;
	}


	public CartBeans(int cart_no, int cart_member, int cart_product,
			int cart_count) {
		super();
		this.cart_no = cart_no;
		this.cart_member = cart_member;
		this.cart_product = cart_product;
		this.cart_count = cart_count;
	}

	public int getCart_no() {
		return cart_no;
	}

	public void setCart_no(int cart_no) {
		this.cart_no = cart_no;
	}

	public int getCart_member() {
		return cart_member;
	}

	public void setCart_member(int cart_member) {
		this.cart_member = cart_member;
	}

	public int getCart_product() {
		return cart_product;
	}

	public void setCart_product(int cart_product) {
		this.cart_product = cart_product;
	}

	public int getCart_count() {
		return cart_count;
	}

	public void setCart_count(int cart_count) {
		this.cart_count = cart_count;
	}

	@Override
	public String toString() {
		return "CartBeans [cart_no=" + cart_no + ", cart_member=" + cart_member
				+ ", cart_product=" + cart_product + ", cart_count="
				+ cart_count + "]";
	}
}
	